package org.fog.json.common;

import org.fog.OperationModeEnum;

import java.net.URI;
import java.util.ArrayList;
import java.util.List;

/**
 * User: 缪凯
 * Date: 12-2-17
 * Time: 下午4:31
 */
public class JsonCCImp implements JsonCC , java.io.Serializable{
    /**
     * 工作模式
     * Debug 为调试模式，此模式下将打印所有log
     * Produce 为生产模式  此模式下只打印业务log
     *
     * 默认工作在Debug状态
     */
    private OperationModeEnum mode = OperationModeEnum.Debug;

    /**
     * map文件的配置路径
     */
    private ArrayList<URI> paths = null;

    public void setOperationMode(OperationModeEnum mode) {
        this.mode = mode;
    }

    public OperationModeEnum getOperationMode() {
        return this.mode;
    }

    public void setJsonMapPaths(List<URI> paths) {
        if(paths != null && paths instanceof ArrayList){
            this.paths = (ArrayList<URI>)paths;
        }
    }

    public List<URI> getJsonMapPaths() {
        return this.paths;
    }
}
